<div class="gyujtok index">
<h2><?php echo __('Gyujtok');?></h2>
<p>
<?php
$this->Html->script('laksmi.admin.js', false);
print $this->Form->create('Gyujto', array('action' => 'edit'));
print $this->Form->input('id',
								array(
									'label' => 'Gyüjtő',
									'type' => 'text',
									'value' => isset($this->request->data['Gyujto']['id']) ? $this->request->data['Gyujto']['id'] : false,
									'div' => false
									));
print $this->Form->end();

echo $this->Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%')
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $this->Paginator->sort('id');?></th>
	<th><?php echo $this->Paginator->sort('gyujtotipus_id');?></th>
	<th><?php echo $this->Paginator->sort('kod');?></th>
	<th><?php echo $this->Paginator->sort('nev');?></th>
	<th class="actions"><?php echo __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($gyujtok as $gyujto):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $gyujto['Gyujto']['id']; ?>
		</td>
		<td>
			<?php echo $this->Html->link($gyujto['Gyujtotipus']['id'], array('controller'=> 'gyujtotipusok', 'action'=>'view', $gyujto['Gyujtotipus']['id'])); ?>
		</td>
		<td>
			<?php echo $gyujto['Gyujto']['kod']; ?>
		</td>
		<td>
			<?php echo $gyujto['Gyujto']['nev']; ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action'=>'view', $gyujto['Gyujto']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action'=>'edit', $gyujto['Gyujto']['id'])); ?>
			<?php echo $this->Html->link(__('Delete'), array('action'=>'delete', $gyujto['Gyujto']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $gyujto['Gyujto']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $this->Paginator->prev('<< '.__('previous'), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $this->Paginator->numbers();?>
	<?php echo $this->Paginator->next(__('next').' >>', array(), null, array('class'=>'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('New Gyujto'), array('action'=>'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Gyujtotipusok'), array('controller'=> 'gyujtotipusok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Gyujtotipus'), array('controller'=> 'gyujtotipusok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Szamlak'), array('controller'=> 'szamlak', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Szamla'), array('controller'=> 'szamlak', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Osztalyok'), array('controller'=> 'osztalyok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Osztaly'), array('controller'=> 'osztalyok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tetelek'), array('controller'=> 'tetelek', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tetel'), array('controller'=> 'tetelek', 'action'=>'add')); ?> </li>
	</ul>
</div>
